import Vue from 'vue'
import App from './App.vue'
import UI_Router from './components/UI_Router.vue'
import Contacts from './components/Contacts.vue'
import About from './components/About.vue'
import All_contacts from './components/All_contacts.vue'
import Alice from './components/Alice.vue'
import Bob from './components/Bob.vue'
import blog from './components/blog.vue'
import fax from './components/fax.vue'
Vue.config.productionTip = false

import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path:'/UI_Router',
    component: UI_Router
  },
  {
    path:'/Contacts',
    component: Contacts,
    children:[
      {
        path:'/All_contacts',
        component:All_contacts
      },
      {
        path:'/Alice',
        component:Alice
      },
      {
        path:'/Bob',
        component:Bob,
        children:[
          {
            path:'/blog',
            component:blog
          },
          {
            path:'/fax',
            component:fax
          },
        ]
      },
    ]
  },
  {
    path:'/About',
    component: About
  },
]
const router = new VueRouter({
  routes
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
